package insight.google.game.era.data;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import java.util.Date;
import java.util.List;

/**
 * JDO class for Game Participant Entity.
 * @author MMC
 *
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION,detachable="true")
public class Participant {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private String participantID;
	
	@Persistent
	private String userID;
	
	@Persistent
	private String role;
	
	@Persistent
	private int life;
	
	@Persistent
	private String state;
	
	@Persistent
	private List<String> policyList;

	/**
	 * @return the participantID
	 */
	public String getParticipantID() {
		return participantID;
	}

	/**
	 * @param participantID the participantID to set
	 */
	public void setParticipantID(String participantID) {
		this.participantID = participantID;
	}

	/**
	 * @return the userID
	 */
	public String getUserID() {
		return userID;
	}

	/**
	 * @param userID the userID to set
	 */
	public void setUserID(String userID) {
		this.userID = userID;
	}

	/**
	 * @return the role
	 */
	public String getRole() {
		return role;
	}

	/**
	 * @param role the role to set
	 */
	public void setRole(String role) {
		this.role = role;
	}

	/**
	 * @return the life
	 */
	public int getLife() {
		return life;
	}

	/**
	 * @param life the life to set
	 */
	public void setLife(int life) {
		this.life = life;
	}

	/**
	 * @return the state
	 */
	public String getState() {
		return state;
	}

	/**
	 * @param state the state to set
	 */
	public void setState(String state) {
		this.state = state;
	}

	/**
	 * @return the policyList
	 */
	public List<String> getPolicyList() {
		return policyList;
	}

	/**
	 * @param policyList the policyList to set
	 */
	public void setPolicyList(List<String> policyList) {
		this.policyList = policyList;
	}
}
